//
//  AppDelegate.m
//  FWeChat
//
//  Created by iSolar on 2017/10/24.
//  Copyright © 2017年 NOOrganization. All rights reserved.
//

#import "AppDelegate.h"
#import "BaseTabBarController.h"

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    
    self.window.backgroundColor = [UIColor whiteColor];

    [self initTabbarController:0];
    
    [self.window makeKeyAndVisible];
    
    //设置全局状态栏字体颜色为白色
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
    
    
    return YES;
}

- (void)initTabbarController:(NSInteger)index {
    
    BaseTabBarController *tabbar = [BaseTabBarController new];
    tabbar.selectedIndex = index;
    self.window.rootViewController = tabbar;
    
}


- (void)applicationWillTerminate:(UIApplication *)application {

   
    
}


@end
